﻿package com.tdzx.alipay;

import com.tdzx.constant.Constant;

public class OrderInfoUtil {
	
	public static String getOrderInfo(String tradeNo,String subject,String subjectBody,String totalFee) {
		String strOrderInfo = "partner=" + "\"" + PartnerConfig.PARTNER + "\"";
		strOrderInfo += "&";
		strOrderInfo += "seller=" + "\"" + PartnerConfig.SELLER + "\"";
		strOrderInfo += "&";
		strOrderInfo += "out_trade_no=" + "\"" + tradeNo + "\"";
		strOrderInfo += "&";
		strOrderInfo += "subject=" + "\"" + subject
				+ "\"";
		strOrderInfo += "&";
		strOrderInfo += "body=" + "\"" +subjectBody + "\"";
		strOrderInfo += "&";
		strOrderInfo += "total_fee=" + "\""
				+ totalFee + "\"";
		strOrderInfo += "&";
		strOrderInfo += "notify_url=" + "\""
				+ Constant.notifyUrl + "\"";
		
		return strOrderInfo;
	}
}